.class public Lrexsee/fileSelector/RexseeFileSelector$FileSelector;
.super Lrexsee/core/widget/DivDialog;
.source "RexseeFileSelector.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lrexsee/fileSelector/RexseeFileSelector;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "FileSelector"
.end annotation


# instance fields
.field public final adapter:Lrexsee/fileSelector/FileAdapter;

.field public final listView:Landroid/widget/ListView;

.field public parentLayout:Landroid/widget/LinearLayout;

.field final synthetic this$0:Lrexsee/fileSelector/RexseeFileSelector;

.field private title:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Lrexsee/fileSelector/RexseeFileSelector;Lrexsee/core/browser/Browser;Ljava/lang/String;)V
    .locals 19
    .param p2, "parentBrowser"    # Lrexsee/core/browser/Browser;
    .param p3, "style"    # Ljava/lang/String;

    .prologue
    .line 360
    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    .line 222
    const-string v14, "FileListSelector"

    new-instance v15, Ljava/lang/StringBuilder;

    const-string v16, "border-width:0;vertical-spacing:1;horizontal-line:#444444;icon-width:60;icon-height:60;label-padding:5 10 5 10;white-space:normal;color:#FFFFFF;text-align:left;"

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object v0, v15

    move-object/from16 v1, p3

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    move-object/from16 v0, p0

    move-object/from16 v1, p2

    move-object v2, v14

    move-object v3, v15

    invoke-direct {v0, v1, v2, v3}, Lrexsee/core/widget/DivDialog;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;)V

    .line 223
    new-instance v14, Landroid/widget/ListView;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v15, v0

    invoke-direct {v14, v15}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->listView:Landroid/widget/ListView;

    .line 224
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->listView:Landroid/widget/ListView;

    move-object v14, v0

    const/high16 v15, -0x1000000

    invoke-virtual {v14, v15}, Landroid/widget/ListView;->setBackgroundColor(I)V

    .line 225
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->listView:Landroid/widget/ListView;

    move-object v14, v0

    new-instance v15, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$1;

    move-object v0, v15

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$1;-><init>(Lrexsee/fileSelector/RexseeFileSelector$FileSelector;)V

    invoke-virtual {v14, v15}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 250
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->listView:Landroid/widget/ListView;

    move-object v14, v0

    new-instance v15, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v16, -0x1

    const/16 v17, -0x1

    const/high16 v18, 0x3f800000    # 1.0f

    invoke-direct/range {v15 .. v18}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v14, v15}, Landroid/widget/ListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 251
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->styleSheet:Lrexsee/core/style/StyleSheet;

    move-object v14, v0

    iget-object v14, v14, Lrexsee/core/style/StyleSheet;->horizontal_line:Ljava/lang/String;

    move-object/from16 v0, p2

    move-object v1, v14

    invoke-static {v0, v1}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v10

    .line 252
    .local v10, "divider":Landroid/graphics/drawable/Drawable;
    if-eqz v10, :cond_0

    .line 253
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->listView:Landroid/widget/ListView;

    move-object v14, v0

    invoke-virtual {v14, v10}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 254
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->listView:Landroid/widget/ListView;

    move-object v14, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->styleSheet:Lrexsee/core/style/StyleSheet;

    move-object v15, v0

    invoke-virtual {v15}, Lrexsee/core/style/StyleSheet;->getVerticalSpacing()I

    move-result v15

    invoke-virtual {v14, v15}, Landroid/widget/ListView;->setDividerHeight(I)V

    .line 256
    :cond_0
    new-instance v14, Lrexsee/fileSelector/FileAdapter;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    move-object v15, v0

    move-object v0, v14

    move-object v1, v15

    move-object/from16 v2, p1

    invoke-direct {v0, v1, v2}, Lrexsee/fileSelector/FileAdapter;-><init>(Lrexsee/core/browser/Browser;Lrexsee/fileSelector/RexseeFileSelector;)V

    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->adapter:Lrexsee/fileSelector/FileAdapter;

    .line 257
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->listView:Landroid/widget/ListView;

    move-object v14, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->adapter:Lrexsee/fileSelector/FileAdapter;

    move-object v15, v0

    invoke-virtual {v14, v15}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 259
    new-instance v14, Landroid/widget/TextView;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v15, v0

    invoke-direct {v14, v15}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->title:Landroid/widget/TextView;

    .line 260
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->title:Landroid/widget/TextView;

    move-object v14, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->styleSheet:Lrexsee/core/style/StyleSheet;

    move-object v15, v0

    move-object/from16 v0, p2

    move-object v1, v14

    move-object v2, v15

    invoke-static {v0, v1, v2}, Lrexsee/natives/ViewStyle;->setTextViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/TextView;Lrexsee/core/style/StyleSheet;)V

    .line 261
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->title:Landroid/widget/TextView;

    move-object v14, v0

    new-instance v15, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v16, -0x1

    const/16 v17, -0x2

    invoke-direct/range {v15 .. v17}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 262
    new-instance v11, Landroid/widget/LinearLayout;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v14, v0

    invoke-direct {v11, v14}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 263
    .local v11, "layout":Landroid/widget/LinearLayout;
    const/4 v14, 0x1

    invoke-virtual {v11, v14}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 264
    const/4 v14, 0x0

    invoke-virtual {v11, v14}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    .line 265
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->title:Landroid/widget/TextView;

    move-object v14, v0

    invoke-virtual {v11, v14}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 267
    new-instance v14, Landroid/widget/LinearLayout;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v15, v0

    invoke-direct {v14, v15}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    .line 268
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    move-object v14, v0

    const/high16 v15, -0x1000000

    invoke-virtual {v14, v15}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    .line 269
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    move-object v14, v0

    const/4 v15, 0x0

    invoke-virtual {v14, v15}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 270
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    move-object v14, v0

    const/16 v15, 0x10

    invoke-virtual {v14, v15}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 271
    new-instance v12, Landroid/widget/ImageView;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v14, v0

    invoke-direct {v12, v14}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 272
    .local v12, "parentIcon":Landroid/widget/ImageView;
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    move-object v14, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->styleSheet:Lrexsee/core/style/StyleSheet;

    move-object v15, v0

    invoke-static {v14, v12, v15}, Lrexsee/natives/ViewStyle;->setImageViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/ImageView;Lrexsee/core/style/StyleSheet;)V

    .line 273
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->styleSheet:Lrexsee/core/style/StyleSheet;

    move-object v14, v0

    invoke-virtual {v14}, Lrexsee/core/style/StyleSheet;->getIconLayoutParams()Landroid/widget/LinearLayout$LayoutParams;

    move-result-object v14

    invoke-virtual {v12, v14}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 274
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->adapter:Lrexsee/fileSelector/FileAdapter;

    move-object v14, v0

    iget-object v14, v14, Lrexsee/fileSelector/FileAdapter;->folderIcon:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v12, v14}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 275
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    move-object v14, v0

    invoke-virtual {v14, v12}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 276
    new-instance v13, Landroid/widget/TextView;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v14, v0

    invoke-direct {v13, v14}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 277
    .local v13, "parentName":Landroid/widget/TextView;
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    move-object v14, v0

    move-object/from16 v0, p1

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector;->mUnselectedStyle:Lrexsee/core/style/StyleSheet;

    move-object v15, v0

    invoke-static {v14, v13, v15}, Lrexsee/natives/ViewStyle;->setTextViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/TextView;Lrexsee/core/style/StyleSheet;)V

    .line 278
    move-object/from16 v0, p1

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector;->mUnselectedStyle:Lrexsee/core/style/StyleSheet;

    move-object v14, v0

    invoke-virtual {v14}, Lrexsee/core/style/StyleSheet;->getLabelLayoutParams()Landroid/widget/LinearLayout$LayoutParams;

    move-result-object v14

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 279
    const-string v14, ".."

    invoke-virtual {v13, v14}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 280
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    move-object v14, v0

    invoke-virtual {v14, v13}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 281
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    move-object v14, v0

    new-instance v15, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$2;

    move-object v0, v15

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$2;-><init>(Lrexsee/fileSelector/RexseeFileSelector$FileSelector;)V

    invoke-virtual {v14, v15}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 289
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    move-object v14, v0

    const/16 v15, 0x8

    invoke-virtual {v14, v15}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 291
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->parentLayout:Landroid/widget/LinearLayout;

    move-object v14, v0

    invoke-virtual {v11, v14}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 292
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->listView:Landroid/widget/ListView;

    move-object v14, v0

    invoke-virtual {v11, v14}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 294
    move-object/from16 v0, p1

    iget-boolean v0, v0, Lrexsee/fileSelector/RexseeFileSelector;->mMultiple:Z

    move v14, v0

    if-eqz v14, :cond_1

    .line 296
    new-instance v8, Landroid/widget/Button;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v14, v0

    invoke-direct {v8, v14}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    .line 297
    .local v8, "buttonSelect":Landroid/widget/Button;
    const/16 v14, 0x14

    const/16 v15, 0xa

    const/16 v16, 0x14

    const/16 v17, 0xa

    move-object v0, v8

    move v1, v14

    move v2, v15

    move/from16 v3, v16

    move/from16 v4, v17

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/Button;->setPadding(IIII)V

    .line 298
    const/high16 v14, 0x41400000    # 12.0f

    invoke-virtual {v8, v14}, Landroid/widget/Button;->setTextSize(F)V

    .line 299
    sget-object v14, Lrexsee/core/lang/RexseeLanguage;->ACTION_SELECT_ALL:Ljava/lang/String;

    invoke-virtual {v8, v14}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 300
    new-instance v14, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$3;

    move-object v0, v14

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$3;-><init>(Lrexsee/fileSelector/RexseeFileSelector$FileSelector;)V

    invoke-virtual {v8, v14}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 311
    new-instance v14, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v15, -0x1

    const/16 v16, -0x2

    const/high16 v17, 0x3f800000    # 1.0f

    invoke-direct/range {v14 .. v17}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v8, v14}, Landroid/widget/Button;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 312
    new-instance v9, Landroid/widget/Button;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v14, v0

    invoke-direct {v9, v14}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    .line 313
    .local v9, "buttonUnselect":Landroid/widget/Button;
    const/16 v14, 0x14

    const/16 v15, 0xa

    const/16 v16, 0x14

    const/16 v17, 0xa

    move-object v0, v9

    move v1, v14

    move v2, v15

    move/from16 v3, v16

    move/from16 v4, v17

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/Button;->setPadding(IIII)V

    .line 314
    const/high16 v14, 0x41400000    # 12.0f

    invoke-virtual {v9, v14}, Landroid/widget/Button;->setTextSize(F)V

    .line 315
    sget-object v14, Lrexsee/core/lang/RexseeLanguage;->ACTION_UNSELECT_ALL:Ljava/lang/String;

    invoke-virtual {v9, v14}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 316
    new-instance v14, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$4;

    move-object v0, v14

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$4;-><init>(Lrexsee/fileSelector/RexseeFileSelector$FileSelector;)V

    invoke-virtual {v9, v14}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 323
    new-instance v14, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v15, -0x1

    const/16 v16, -0x2

    const/high16 v17, 0x3f800000    # 1.0f

    invoke-direct/range {v14 .. v17}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v9, v14}, Landroid/widget/Button;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 325
    new-instance v6, Landroid/widget/Button;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v14, v0

    invoke-direct {v6, v14}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    .line 326
    .local v6, "buttonConfirm":Landroid/widget/Button;
    const/16 v14, 0x14

    const/16 v15, 0xa

    const/16 v16, 0x14

    const/16 v17, 0xa

    move-object v0, v6

    move v1, v14

    move v2, v15

    move/from16 v3, v16

    move/from16 v4, v17

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/Button;->setPadding(IIII)V

    .line 327
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v14, v0

    invoke-virtual {v14}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v14

    const v15, 0x104000a

    invoke-virtual {v14, v15}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v6, v14}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 328
    new-instance v14, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$5;

    move-object v0, v14

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$5;-><init>(Lrexsee/fileSelector/RexseeFileSelector$FileSelector;)V

    invoke-virtual {v6, v14}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 335
    new-instance v14, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v15, -0x1

    const/16 v16, -0x2

    const/high16 v17, 0x3f800000    # 1.0f

    invoke-direct/range {v14 .. v17}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v6, v14}, Landroid/widget/Button;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 336
    new-instance v5, Landroid/widget/Button;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v14, v0

    invoke-direct {v5, v14}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    .line 337
    .local v5, "buttonCancel":Landroid/widget/Button;
    const/16 v14, 0x14

    const/16 v15, 0xa

    const/16 v16, 0x14

    const/16 v17, 0xa

    move-object v0, v5

    move v1, v14

    move v2, v15

    move/from16 v3, v16

    move/from16 v4, v17

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/Button;->setPadding(IIII)V

    .line 338
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v14, v0

    invoke-virtual {v14}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v14

    const/high16 v15, 0x1040000

    invoke-virtual {v14, v15}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v5, v14}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 339
    new-instance v14, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$6;

    move-object v0, v14

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$6;-><init>(Lrexsee/fileSelector/RexseeFileSelector$FileSelector;)V

    invoke-virtual {v5, v14}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 345
    new-instance v14, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v15, -0x1

    const/16 v16, -0x2

    const/high16 v17, 0x3f800000    # 1.0f

    invoke-direct/range {v14 .. v17}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v5, v14}, Landroid/widget/Button;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 346
    new-instance v7, Landroid/widget/LinearLayout;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    move-object v14, v0

    invoke-direct {v7, v14}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 347
    .local v7, "buttonLayout":Landroid/widget/LinearLayout;
    const/4 v14, 0x0

    const/4 v15, 0x5

    const/16 v16, 0x0

    const/16 v17, 0x0

    move-object v0, v7

    move v1, v14

    move v2, v15

    move/from16 v3, v16

    move/from16 v4, v17

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    .line 348
    const/4 v14, 0x0

    invoke-virtual {v7, v14}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 349
    const/4 v14, 0x0

    invoke-virtual {v7, v14}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    .line 350
    new-instance v14, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v15, -0x1

    const/16 v16, -0x2

    invoke-direct/range {v14 .. v16}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v7, v14}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 351
    invoke-virtual {v7, v8}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 352
    invoke-virtual {v7, v9}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 353
    invoke-virtual {v7, v6}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 354
    invoke-virtual {v7, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 355
    invoke-virtual {v11, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 358
    .end local v5    # "buttonCancel":Landroid/widget/Button;
    .end local v6    # "buttonConfirm":Landroid/widget/Button;
    .end local v7    # "buttonLayout":Landroid/widget/LinearLayout;
    .end local v8    # "buttonSelect":Landroid/widget/Button;
    .end local v9    # "buttonUnselect":Landroid/widget/Button;
    :cond_1
    move-object/from16 v0, p0

    move-object v1, v11

    invoke-virtual {v0, v1}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->addChild(Landroid/view/View;)V

    return-void
.end method

.method static synthetic access$0(Lrexsee/fileSelector/RexseeFileSelector$FileSelector;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 213
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method

.method static synthetic access$1(Lrexsee/fileSelector/RexseeFileSelector$FileSelector;)Lrexsee/fileSelector/RexseeFileSelector;
    .locals 1

    .prologue
    .line 213
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    return-object v0
.end method


# virtual methods
.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x1

    .line 377
    const/4 v0, 0x4

    if-ne p1, v0, :cond_2

    .line 378
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->menu:Lrexsee/core/menu/RexseeMenu;

    iget-boolean v0, v0, Lrexsee/core/menu/RexseeMenu;->isOptionsMenuOpen:Z

    if-eqz v0, :cond_0

    .line 379
    iget-object p0, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    .end local p0    # "this":Lrexsee/fileSelector/RexseeFileSelector$FileSelector;
    check-cast p0, Landroid/app/Activity;

    invoke-virtual {p0}, Landroid/app/Activity;->closeOptionsMenu()V

    move v0, v1

    .line 393
    :goto_0
    return v0

    .line 382
    .restart local p0    # "this":Lrexsee/fileSelector/RexseeFileSelector$FileSelector;
    :cond_0
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v0, v0, Lrexsee/core/style/StyleSheet;->window_cancelable:Ljava/lang/String;

    const-string v1, "true"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->dismiss()V

    .line 393
    .end local p0    # "this":Lrexsee/fileSelector/RexseeFileSelector$FileSelector;
    :cond_1
    :goto_1
    const/4 v0, 0x0

    goto :goto_0

    .line 384
    .restart local p0    # "this":Lrexsee/fileSelector/RexseeFileSelector$FileSelector;
    :cond_2
    const/16 v0, 0x52

    if-ne p1, v0, :cond_3

    .line 385
    iget-object p0, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mContext:Landroid/content/Context;

    .end local p0    # "this":Lrexsee/fileSelector/RexseeFileSelector$FileSelector;
    check-cast p0, Landroid/app/Activity;

    invoke-virtual {p0}, Landroid/app/Activity;->openOptionsMenu()V

    goto :goto_1

    .line 386
    .restart local p0    # "this":Lrexsee/fileSelector/RexseeFileSelector$FileSelector;
    :cond_3
    const/16 v0, 0x54

    if-ne p1, v0, :cond_4

    move v0, v1

    .line 387
    goto :goto_0

    .line 388
    :cond_4
    const/16 v0, 0x50

    if-eq p1, v0, :cond_1

    .line 389
    const/16 v0, 0x18

    if-eq p1, v0, :cond_1

    goto :goto_1
.end method

.method public reload()V
    .locals 2

    .prologue
    .line 362
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v0}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$7;

    invoke-direct {v1, p0}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector$7;-><init>(Lrexsee/fileSelector/RexseeFileSelector$FileSelector;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 369
    return-void
.end method

.method public setTitle()V
    .locals 3

    .prologue
    .line 371
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    iget-boolean v0, v0, Lrexsee/fileSelector/RexseeFileSelector;->mMultiple:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->title:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector;->mCurrentPath:Ljava/lang/String;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    iget-object v2, v2, Lrexsee/fileSelector/RexseeFileSelector;->mSelection:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 373
    :goto_0
    return-void

    .line 372
    :cond_0
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->title:Landroid/widget/TextView;

    iget-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->this$0:Lrexsee/fileSelector/RexseeFileSelector;

    iget-object v1, v1, Lrexsee/fileSelector/RexseeFileSelector;->mCurrentPath:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method
